package io.renren.modules.carcustomerinfo.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.google.gson.JsonObject;
import io.renren.common.utils.PageData;
import io.renren.modules.carcustomerinfo.dto.CarCustomerInfoDTO;
import io.renren.modules.carcustomerinfo.entity.CarCustomerInfoEntity;
import io.renren.modules.carcustomerinfo.vo.CarCustomerInfoVO;

import java.util.List;
import java.util.Map;

/**
 * 客户预约信息表
 *
 * @author admin
 * @email sunlightcs@gmail.com
 * @date 2021-08-04 09:53:54
 */
public interface CarCustomerInfoService extends IService<CarCustomerInfoEntity> {

    /**
     * 客户预约信息表(分页)
     * @param params
     * @return
     */
    PageData<CarCustomerInfoVO> queryCustomerInfoPage(Map<String, Object> params);

    /**
     * 客户预约
     * @param dto
     */
    void subscribe(CarCustomerInfoDTO dto);

    /**
     * 客户预约列表
     * @param userId
     * @return
     */
    JSONObject subscribelist(Long userId);
}

